﻿<!DOCTYPE html>
<html>
<head>
    <title>@ViewBag.Title</title>
    <link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
    <script src="@Url.Content("~/Scripts/jquery-1.5.1.min.js")" type="text/javascript"></script>
</head>
<body>
    <div class="page">
        <div id="header">
            <div id="title">
                <h1>淘宝开放平台</h1>
            </div>
            <div id="logindisplay">
                @if(Request.IsAuthenticated) {
                    <text>欢迎 <strong>@User.Identity.Name</strong>!
                    [ @Html.ActionLink("退出", "logoff", "home") ]</text>
                }
                else {
                    @:[ @Html.ActionLink("淘宝帐号登录", "logon", "home") ]
                }
            </div>
            <div id="menucontainer">
                <ul id="menu">
                    <li>@Html.ActionLink("Home", "index", "home")</li>
                    @if (User.IsInRole("TaobaoUsers"))
                    {                                        
                        <li>@Html.ActionLink("工作台", "dashboard", "home")</li>
                    }
                </ul>
            </div>
        </div>
        <div id="main">
            @RenderBody()
        </div>
        <div id="footer">
        </div>
    </div>
</body>
</html>
